package cn.xfdzx.android.apps.shop.activity.login;

import android.graphics.Color;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.annotation.Nullable;

import butterknife.BindView;
import butterknife.OnClick;
import cn.xfdzx.android.apps.shop.R;
import cn.xfdzx.android.apps.shop.base.BaseMvpActivity;


/*
/* 忘记密码页面
 */
public class ForgetPasswordActivity extends BaseMvpActivity {

    @BindView(R.id.iv_back)
    ImageView ivBack;          //标题栏-左边按钮
    @BindView(R.id.forget_phone)
    TextView forgetPhone;    //显示发送的手机号
    @BindView(R.id.forget_code)
    EditText forgetCode;    //输入验证码的EdteText
    @BindView(R.id.forget_get_code)
    TextView forgetGetCode; //获取验证码按钮

    @BindView(R.id.forget_password)
    EditText forgetPassword;  //输入密码的EditText
    @BindView(R.id.forget_info)
    TextView forgetInfo;    //下方红色提示文案
    @BindView(R.id.forget_sign)
    TextView forgetSign;    //登录

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
            Window window = getWindow();
            window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS
                    | WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);
            window.getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
                    | View.SYSTEM_UI_FLAG_LAYOUT_STABLE);
            window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
            window.setStatusBarColor(Color.TRANSPARENT);

        }
    }

    @Override
    public int getLayoutId() {
        return R.layout.activity_forgetpassword;
    }

    @Override
    public void initView() {

    }

    @Override
    public void showLoading() {

    }

    @Override
    public void hideLoading() {

    }

    @Override
    public void onError(Throwable throwable) {

    }

    @OnClick({R.id.iv_back, R.id.forget_get_code, R.id.forget_sign})
    public void onViewClicked(View view) {
        switch (view.getId()) {

            case R.id.iv_back:   //左上角返回图标
                finish();
                break;

            case R.id.forget_get_code:  //获取验证码
                break;

            case R.id.forget_sign:   //底部登录
                break;
        }
    }
}
